<?php /* Smarty version 2.6.26, created on 2016-05-11 16:25:16
         compiled from guanli.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'css', 'guanli.php', 7, false),)), $this); ?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<link rel="stylesheet" type="text/css" href="Public/bootstrap/css/bootstrap.min.css"/>
	<?php echo smarty_function_css(array('file' => "Public/yangshi/css/index.css"), $this);?>

</head>
<body>
	<table class="table table-hover" style="width: 800px;margin:30px auto">
  	<div id="" style="width: 800px;margin:30px auto">
  		 
		<a href="index.php?c=Stu&a=add&cid=<?php echo $_GET['cid']; ?>
"><button type="button" class="btn btn-success">添加同学</button></a>
	</div>
		<tr>
				<td>uid</td>
				<td>姓名</td>
				<td>年龄</td>
				<td>性别</td>
				<!--<td>班级</td>-->
				<td>cid</td>
				<td>操作</td>
			</tr>
			<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
			<tr>
				<td><?php echo $this->_tpl_vars['v']['uid']; ?>
</td>
				<td><?php echo $this->_tpl_vars['v']['username']; ?>
</td>
				<td><?php echo $this->_tpl_vars['v']['age']; ?>
</td>
				<td><?php echo $this->_tpl_vars['v']['sex']; ?>
</td>
				<!--<td><?php echo $this->_tpl_vars['v']['class']; ?>
</td>-->
				<td><?php echo $this->_tpl_vars['v']['cid']; ?>
</td>
				<td>
			
					<a href="index.php?c=Stu&a=edit&uid=<?php echo $this->_tpl_vars['v']['uid']; ?>
&cid=<?php echo $_GET['cid']; ?>
"><button type="button" class="btn btn-primary">编辑同学</button></a>
					<a href="index.php?c=Stu&a=delete&uid=<?php echo $this->_tpl_vars['v']['uid']; ?>
&cid=<?php echo $_GET['cid']; ?>
"><button type="button" class="btn btn-danger">删除同学</button></a>
				</td>
			</tr>
			<?php endforeach; endif; unset($_from); ?>
</table>
</body>
</html>